import { Controller, Get, Post, Body } from '@nestjs/common';
import { CaptchaService } from './captcha.service';
import { ApiTags, ApiOperation } from '@nestjs/swagger';

@ApiTags('验证码')
@Controller('auth')
export class CaptchaController {
  constructor(private readonly captchaService: CaptchaService) {}

  @Get('captcha')
  @ApiOperation({ summary: '获取验证码' })
  async getCaptcha() {
    return await this.captchaService.generateCaptcha();
  }
} 